<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>CSS3 3D转换</title>
	<style>
		body {
			margin: 0;
			padding: 0;
			background-color: #F7F7F7;
		}

		.translateX {
			width: 200px;
			height: 200px;
			background-color: green;
			/* transition: all 1s; */
			transition: all 1s linear; 
			
		}

		.translateX:hover {
			/* transform: translateX(100px);    2d */

			/*
			perspective  透视 
			*/
			transform:perspective(1000px) translateX(100px);


		}
	</style>
</head>
<body>
	<div class="translateX"></div>
</body>
</html>